package service

import (
	"context"
	"log"

	v1 "voiddme.io/engineering/api/cart/v1"

	"voiddme.io/engineering/internal/biz"
)

// CartService 面向的是 domain
type CartService struct {
	cu  *biz.CartUseCase
	log *log.Logger
}

func NewCartService(cu *biz.CartUseCase, logger *log.Logger) *CartService {
	return &CartService{
		cu:  cu,
		log: logger,
	}
}

func (s *CartService) CreateCart(ctx context.Context, in *v1.CreateCartRequest) (*v1.CreateCartReply, error) {
	return &v1.CreateCartReply{}, nil
}

func (s *CartService) UpdateCart(ctx context.Context, in *v1.UpdateCartRequest) (*v1.UpdateCartReply, error) {
	return &v1.UpdateCartReply{}, nil
}

func (s *CartService) GetCart(ctx context.Context, in *v1.GetCartRequest) (*v1.GetCartReply, error) {
	return &v1.GetCartReply{}, nil
}

func (s *CartService) DeleteCart(ctx context.Context, in *v1.DeleteCartRequest) (*v1.DeleteCartReply, error) {
	return &v1.DeleteCartReply{}, nil
}

func (s *CartService) ListCart(ctx context.Context, in *v1.ListCartRequest) (*v1.ListCartReply, error) {
	return &v1.ListCartReply{}, nil
}
